#pragma once

#include "baseTypes.h"
#include <list>
#include <string.h>
using namespace std;

typedef struct subtitleInfo
{
	char8_t* subString;
	float_t  posX;
	float_t  posY;
	float_t  r;
	float_t  g;
	float_t  b;
	float_t  speed;
	float_t  speedAngle;
	float_t  lifeTime;
}subtitleInfoT;

class SubtitleManager
{
public:
	static SubtitleManager     *CreateInstance();
	static SubtitleManager     *GetInstance() {return sInstance;};
	void                       init();
	void                       Update(float_t millionsecond);
	void                       Draw();
	void                       AddDynamicSubtitle();
	void                       IncreaseAttemptTimes(int32_t increase);
	void                       SetAttemptTimes(int32_t argAttempts);

private:
	list<subtitleInfoT*>       *m_SubtitleList;
	static SubtitleManager     *sInstance;
};


